﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cn.Cellula.Model.Product {
    public class VProductWithGroupPK  {

        public virtual string ProductId { get; set; }
        public virtual string GroupKey { get; set; }

        

        public override bool Equals(object other) {
            if (other is VProductWithGroupPK) {
                VProductWithGroupPK pk = other as VProductWithGroupPK;
                if (this.ProductId == pk.ProductId
                     && this.GroupKey == pk.GroupKey) {
                    return true;
                } else {
                    return false;
                }
            }
            return false;        
        }
        public override int GetHashCode() {
            return base.GetHashCode();
        }

    }
}
